import Vue from 'vue'
import Vuex from 'vuex'
// 导入模块
import user from './modules/user'
import setting from './modules/setting'
import tagsView from './modules/tagsView'
import permission from './modules/permission'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
    // 子模块
    modules: {
        user,
        setting,
        tagsView,
        permission,

    },
    getters
})

export default store